using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Data;
using PlugNT.Safe;
using PlugNT.Cms.Custom;
using PlugNT.Cms.Model;

namespace PlugNT.Cms.BLL
{



    public class Channel
    {

        internal static readonly PlugNT.Cms.DAL.Channel dal = new PlugNT.Cms.DAL.Channel();


        public static string GetTableName()
        {
            return PlugNT.Cms.DAL.Channel.currTableName;
        }







        public string GetNoList(int id)
        {
            return dal.GetNoList(id);
        }








        public string GetTitle(int id)
        {
            return PlugNT.Cms.DAL.Channel.GetTitle(id);

        }

               






        public ChannelInfo GetChannelInfo(int id)
        {
            return dal.GetChannelInfo(id);

        }
        public ChannelInfo GetChannelInfo(string no)
        {
            return dal.GetChannelInfo(no);

        }







        public bool Add(ChannelInfo model)
        {
            return dal.Add(model);
        }







        public bool Update(ChannelInfo model)
        {
            return dal.Update(model);
        }






        public bool Delete(int id)
        {
            return dal.Delete(id);
        }







        public bool ExistsParent(int id)
        {
            return dal.ExistsParent(id);
        }


        public DataTable GetMenuList(int sysModelId, string noList)
        {
            return dal.GetMenuList(sysModelId, noList);
        }

        public DataTable GetCreateList(int sysModelId, string noList)
        {
            return dal.GetCreateList(sysModelId, noList);
        }






        public DataTable GetOrderList(string noList)
        {
            return dal.GetOrderList(noList);
        }






        public DataTable GetNolistList(string noList)
        {
            return dal.GetNolistList(noList);
        }






        public DataTable GetSubList(int id, bool incCurrent)
        {
            return dal.GetSubList(id, incCurrent);
        }






        public DataTable GetSubList(string noList, bool incCurrent)
        {
            return dal.GetSubList(noList, incCurrent);
        }

    }

}

